﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_index.aspx.cs" Inherits="newBlog.admin.admin_index" %>

<%@ Register Src="~/model/allLink.ascx" TagPrefix="uc1" TagName="allLink" %>
<!DOCTYPE html>
<% 
    if (Session["user_id"]==null) {
        Response.Write("{\"error\":\"您未登录本站\"}");
        return;
    }
    if (Convert.ToInt32(Session["user_grade"])!=1) { 
    Response.Write("{\"error\":\"您不是管理员\"}");
        return;
    }
    %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>配置站点-<%=Application["title"] %></title>
    <meta name="description" content="<%=Application["content"] %>">
    <meta name="keywords" content="<%=Application["key"] %>">
    <uc1:allLink runat="server" ID="allLink" />
    <script src="/js/admin/option.js"></script>
    <script>
    LoadReaderOption();
</script>
</head>
<body>
<div class="layui-row">
<div class="layui-col-md6 layui-col-md-offset3">
<div class="layui-row RowSpace">
<div class="layui-col-md3 layui-col-xs3"><label class="text-left">站点标题：</label></div>
<div class="layui-col-md9 layui-col-xs9"><input type="text" id="siteTitle" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input"></div>
</div>

<div class="layui-row RowSpace">
<div class="layui-col-md3 layui-col-xs3"><label class="text-left">MATE关键词：</label></div>
<div class="layui-col-md9 layui-col-xs9"><textarea id="siteMateKey" required lay-verify="required" placeholder="请输入关键词并以英文的逗号,分割" class="layui-textarea"></textarea></div>
</div>

<div class="layui-row RowSpace">
<div class="layui-col-md3 layui-col-xs3"><label class="text-left">站点描述：</label></div>
<div class="layui-col-md9 layui-col-xs9"><textarea id="siteContent" required lay-verify="required" placeholder="输入站点的描述通常展示在搜索引擎" class="layui-textarea"></textarea></div>
</div>

<div class="layui-row RowSpace">
<div class="layui-col-md3 layui-col-xs3"><label class="text-left">公告1：</label></div>
<div class="layui-col-md9 layui-col-xs9"><textarea id="Notice1" required lay-verify="required" placeholder="请输入公告信息，显示在用户中心以及充值中心" class="layui-textarea"></textarea></div>
</div>
<div class="layui-row RowSpace">
<div class="layui-col-md3 layui-col-xs3"><label class="text-left">公告2：</label></div>
<div class="layui-col-md9 layui-col-xs9"><textarea id="Notice2" required lay-verify="required" placeholder="请输入公告信息，显示在用户中心以及充值中心" class="layui-textarea"></textarea></div>
</div>
<div class="layui-row RowSpace">
<button type="button" class="layui-btn layui-btn-fluid" onclick="Wrting_option()">确认提交</button>
</div>
</div>
</div>
</body>
</html>
